package www.shuang.orders.pojo;

import java.util.Date;

/**
 * 订单历史的POJO
 * 
 * @author wangshSxt
 *
 */
public class AOrdersHistory
{
	private int id;
	private int ordersId;
	private String content;
	private byte status;
	private Date createTime;
	private Date updateTime;

	/* 字符串描述 */
	private String statusStr;

	public String getStatusStr()
	{
		/*
		 * 状态:0:提交;10:审核中;20:审核通过;30:审核不通过;\r\n40:打款成功;50:打款失败;60:还款中;70:还款完成
		 */
		if (this.status == 0)
		{
			this.statusStr = "提交";
		} else if (this.status == 10)
		{
			this.statusStr = "审核中";
		} else if (this.status == 20)
		{
			this.statusStr = "审核通过";
		} else if (this.status == 30)
		{
			this.statusStr = "审核不通过";
		} else if (this.status == 40)
		{
			this.statusStr = "打款成功";
		} else if (this.status == 50)
		{
			this.statusStr = "打款失败";
		} else if (this.status == 60)
		{
			this.statusStr = "还款中";
		} else if (this.status == 70)
		{
			this.statusStr = "还款完成";
		}
		return statusStr;
	}

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public int getOrdersId()
	{
		return ordersId;
	}

	public void setOrdersId(int ordersId)
	{
		this.ordersId = ordersId;
	}

	public byte getStatus()
	{
		return status;
	}

	public void setStatus(byte status)
	{
		this.status = status;
	}

	public Date getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getUpdateTime()
	{
		return updateTime;
	}

	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}


	public void setStatusStr(String statusStr)
	{
		this.statusStr = statusStr;
	}

	public String getContent()
	{
		return content;
	}

	public void setContent(String content)
	{
		this.content = content;
	}
}
